package com.tuanzi.loan.business.entity.statistics;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import lombok.Data;

import org.hibernate.validator.constraints.Length;

@Data
@Entity
@Table(name="activity_channel_config")
public class ActivityChannelConfig implements Serializable{
	
	private static final long serialVersionUID = -6450215807866189560L;
	
	@Id
	@Column(name="id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long  id;
	
	@Column(name="channel")
	private Long  channel;
	
	@Length(max = 64)
	@Column(name = "activity")
	private String activity;
	
	@Length(max = 30)
	@Column(name = "remark")
	private String remark;

	@Column(name = "operator")
	@Length(max = 30)
	private String operator;
	
	@Column(name="ctime")
	private Date ctime;

	@NotNull
	@Column(name = "url")
	@Length(max = 255)
	private String url;
}
